package com.suny.sf_server.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.suny.Fence.dto.FenceAddDTO;
import com.suny.Fence.dto.FenceUpdateDTO;
import com.suny.Fence.vo.FenceVO;
import com.suny.Fence.domain.Fence;
import com.baomidou.mybatisplus.extension.service.IService;
import com.suny.result.PageDTO;
import com.suny.Fence.dto.FenceQueryDTO;

import java.util.List;

/**
* @author sun
* @description 针对表【fence(围栏管理表)】的数据库操作Service
* @createDate 2024-12-27 10:45:10
*/
public interface FenceService extends IService<Fence> {
    void add(FenceAddDTO dto);
    void update(FenceUpdateDTO dto);
    void updateStatus(Integer fenceId, Integer status);
    Page<FenceVO> getList(PageDTO pageDTO);
    List<FenceVO> getEnableFencesByPenId(Integer penId);
    /**
     * 条件查询围栏列表
     */
    Page<FenceVO> getListByCondition(FenceQueryDTO query);
}
